\documentclass[tikz,border=2mm]{standalone}
\usepackage{array,amsmath,mathptmx,xcolor,pifont,fontspec,xunicode-addon}
\usepackage{bbding}
\usepackage[UTF8]{ctex}
\newcolumntype{C}[1]{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
\usepackage{tikz-cd}
\usepackage{tikz,graphicx,subfig,caption} % Required for drawing custom shapes
\usetikzlibrary{fit,matrix,chains,arrows,shapes,positioning,arrows.meta,chains,shadows,shapes.callouts,decorations.text,shapes.symbols,shapes.misc, positioning,decorations.pathreplacing,calc,backgrounds,}

% 额外添加
\usepackage{indentfirst}
\usepackage{diagbox}
\usepackage{pifont}
\definecolor{lightpink}{RGB}{255, 202, 203}

\begin{document}
	\begin{tikzpicture}[>=latex,every node/.style={anchor=south west,,inner sep=0}]
		
		\node(I0)[align=left] at (0,0){$Z' \rightarrow \cdot Z$ \\ 
			$Z \rightarrow \cdot aAb$};
		\node(I1)[align=left] at ([xshift=3em, yshift=-0.35em]I0.east){$Z \rightarrow \cdot Z$};
		\node(I1.1) at ([xshift=0.5em,yshift=-0.5em]I1.east) {\_};
		
		\node(I2)[align=left] at ([xshift=3em, yshift=-4em]I0.south){$Z \rightarrow a \cdot Ab$ \\
			$A \rightarrow \cdot cA$    \\
			$A \rightarrow \cdot d$
		};
		\node(I3)[align=left] at ([xshift=3em, yshift=-0.4em]I2.east){$Z \rightarrow aA \cdot b$};
		\node(I4)[align=left] at ([xshift=3em, yshift=-0.4em]I3.east){$Z \rightarrow aAb \cdot$};
		\node(I4.1) at ([xshift=0.5em,yshift=-0.5em]I4.east) {\_};
		
		\node(I5)[align=left] at ([xshift=2em, yshift=-7.5em]I2.east){$A \rightarrow c \cdot A$ \\
			$A \rightarrow \cdot cA$ \\
			$A \rightarrow \cdot d$
		};
		\node(I6)[align=left] at ([xshift=3em, yshift=-0.45em]I5.east){$A \rightarrow cA \cdot$};
		\node(I6.1) at ([xshift=0.5em,yshift=-0.5em]I6.east) {\_};
		
		\node(I7)[align=left] at ([xshift=6em, yshift=-9.5em]I2.east){$A \rightarrow d \cdot$};
		\node(I7.1) at ([xshift=0.5em,yshift=-0.5em]I7.east) {\_};
		
		% %连接线
		\draw[->] (I0.east) -- node[above]{Z}(I1.west);
		\draw[->] (I0.south) |- (I2.west);
		\draw[->] (I2.east) -- node[above]{A}(I3.west);
		\draw[->] (I3.east) -- node[above]{b}(I4.west);
		\draw[->] (I2.south) |- (I5.west);
		\draw[->] (I5.east) -- node[above]{A}(I6.west);
		\draw[->] (I2.south) |- (I7.west);
		\draw [->] (I5.south) -- (I7.north);
		\path
		(I5) [->] edge [loop above] node{c} ();
		
		%       % 额外的数据
		\node(+) at ([xshift=-1em,yshift=0.3em]I0.west){\small{+}};
		\node(OK) at ([xshift=0.5em,yshift=0.5em]I1.east){\small{OK}};
		\node(a) at ([xshift=-1.5em,yshift=0em]I2.west){\small{a}};
		\node(c) at ([xshift=-1.5em,]I5.west){\small{c}};
		\node(d) at ([xshift=-2.5em,]I7.west){\small{d}};
		\node(r1) at ([xshift=0.4em,yshift=0em]I4.east){\small{r(1)}};
		\node(r2) at ([xshift=0.4em,yshift=0em]I6.east){\small{r(2)}};
		\node(r3) at ([xshift=0.4em,yshift=0em]I7.east){\small{r(3)}};
		\node(d1) at ([xshift=0.4em,yshift=-1em]I5.east){\small{d}};
		
		% I1234567
		\node(i1) at ([xshift=1.2em]I0.north) {\color{red}$I_0$};
		\node(i2) at ([xshift=1.2em]I1.north) {\color{red}$I_1$};
		\node(i3) at ([xshift=1.2em]I2.north) {\color{red}$I_2$};
		\node(i4) at ([xshift=1.2em]I3.north) {\color{red}$I_3$};
		\node(i5) at ([xshift=1.2em]I4.north) {\color{red}$I_4$};
		\node(i6) at ([xshift=1.2em]I5.north) {\color{red}$I_5$};
		\node(i7) at ([xshift=1.2em]I6.north) {\color{red}$I_6$};
		\node(i8) at ([xshift=1.2em]I7.north) {\color{red}$I_7$};
		
		
		
		\begin{pgfonlayer}{background}
			\node [draw, fill=white,fit=(I0)(I1)(I2)(I3)(I4)(I5)(I6)(I7)(r1)(r2)(r3)(i1)(+),inner sep=0.3em] {};
		\end{pgfonlayer}
		
		\begin{pgfonlayer}{background}
			\node [draw=black,fill=lightpink ,rectangle, inner sep=0.15em,line width=0.0025em][fit=(I0)](box1){};
			\node [draw=black,fill=lightpink ,rectangle, inner sep=0.15em,line width=0.0025em][fit=(I1)](box2){};
			\node [draw=black,fill=lightpink ,rectangle, inner sep=0.15em,line width=0.0025em][fit=(I2)](box3){};
			\node [draw=black,fill=lightpink ,rectangle, inner sep=0.15em,line width=0.0025em][fit=(I3)](box4){};
			\node [draw=black,fill=lightpink ,rectangle, inner sep=0.15em,line width=0.0025em][fit=(I4)](box5){};
			\node [draw=black,fill=lightpink ,rectangle, inner sep=0.15em,line width=0.0025em][fit=(I5)](box6){};
			\node [draw=black,fill=lightpink ,rectangle, inner sep=0.15em,line width=0.0025em][fit=(I6)](box7){};
			\node [draw=black,fill=lightpink ,rectangle, inner sep=0.15em,line width=0.0025em][fit=(I7)](box8){};
		\end{pgfonlayer}
		
		
		
	\end{tikzpicture}
\end{document}